package com.ml.structure.linkedlist;

public class Test {
	public static void main(String[] args) {
		HeroNode h1 = new HeroNode(1,"zhangsan");
		HeroList heroList = new HeroList();
		heroList.addByOrder(h1);
		heroList.addByOrder2(new HeroNode(2, "李四"));
		heroList.addByOrder2(new HeroNode(3, "王五"));
		heroList.addByOrder2(new HeroNode(2, "li四"));
		heroList.addByOrder2(new HeroNode(3, "wang五"));
		heroList.showList(heroList);
		heroList.deleteNode(h1);
		heroList.deleteNode(new HeroNode(3, "wang五"));
/*		heroList.add(new HeroNode(2, "李四"));
		heroList.add(new HeroNode(3, "王五"));
		heroList.add(new HeroNode(2, "找刘"));
		heroList.addByOrder(new HeroNode(2, "张大"));*/
		heroList.showList(heroList);
	}
	
}
